package org.particlethink.model;


import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "supplier_users")
public class SupplierUser {//供应商用户
    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;
    private Date created_at;
    private Integer supplier_id;
    private String name;
    private String phone;
    private String nickName;

    public SupplierUser(Integer id, Integer supplier_id, String name, String phone, String nickName) {
        this.id = id;
        this.created_at = new Date();
        this.supplier_id = supplier_id;
        this.name = name;
        this.phone = phone;
        this.nickName = nickName;
    }

    public SupplierUser() {
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setCreated_at(Date created_at) {
        this.created_at = created_at;
    }

    public Date getCreated_at() {
        return created_at;
    }


    public void setSupplier_id(Integer supplier_id) {
        this.supplier_id = supplier_id;
    }

    public Integer getSupplier_id() {
        return supplier_id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }
}
